package reflectTest;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class MainExec {
	
	public static void main(String[] args) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
		m02();
		m01();		
	}
	
	public static void m01() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
		ImpleteSub is = new ImpleteSub();
		Class c = is.getClass();
		Method m = c.getDeclaredMethod("getAB", (Class[])null);
		String s = (String)m.invoke((Object)is, (Object[])null);
		System.out.println(s);
	}

	public static void m02() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
		ImpleteSub02 is = new ImpleteSub02();
		Class c = is.getClass();
		Method m = c.getDeclaredMethod("getAB", (Class[])null);
		String s = (String)m.invoke((Object)is, (Object[])null);
		System.out.println(s);
	}
}
